﻿using System.Configuration;

namespace CommonModel.Config
{
    /// <summary>
    /// 这里即使用static属性，属性的值也会随着AppSetting配置项的修改而及时修改
    /// </summary>
    public class CacheConfig
    {
        /// <summary>
        /// 通用缓存时间
        /// </summary>
        public static string CommonCacheTime
        {
            get
            {
                return ConfigurationManager.AppSettings["CommonCacheTime"];
            }
        }

    }
}
